-
Notifications
You must be signed in to change notification settings - Fork 0
feat(angular-mcp-server): add violation grouping tool #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
...ular-mcp-server/src/lib/tools/ds/component-contract/builder/build-component-contract.tool.ts
Outdated
Show resolved
Hide resolved
.../angular-mcp-server/src/lib/tools/ds/component-contract/diff/diff-component-contract.tool.ts
Outdated
Show resolved
Hide resolved
|
|
||
| return `# ${group.name} | ||
| ## Summary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird formatting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good 🤔
AdrianRomanski
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it looks solid, but i dont like the "/" comments before initalization of variables.
They add nothing to the context more than method would do.
/** comments are good
...ular-mcp-server/src/lib/tools/ds/component-contract/builder/build-component-contract.tool.ts
Outdated
Show resolved
Hide resolved
packages/angular-mcp-server/src/lib/tools/ds/report-violations/group-violations.tool.ts
Show resolved
Hide resolved
packages/angular-mcp-server/src/lib/tools/ds/report-violations/utils/work-group.utils.ts
Outdated
Show resolved
Hide resolved
packages/angular-mcp-server/src/lib/tools/ds/report-violations/utils/format-converter.utils.ts
Outdated
Show resolved
Hide resolved
...ular-mcp-server/src/lib/tools/ds/component-contract/builder/build-component-contract.tool.ts
Outdated
Show resolved
Hide resolved
| 'Path where to save the diff result file. Supports both absolute and relative paths.', | ||
| 'Path where to save the diff result file. Supports both absolute and relative paths. If not provided, defaults to tmp/.angular-toolkit-mcp/contracts/diffs/<component-name>-diff.json', | ||
| }, | ||
| contractBeforePath: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contract diff has a default saveLocation path, would be good to have an unified approach to provide same default location for contractBefore-*/afterPath
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I improved schemas, but not sure we want to have explicit before/after folders.
packages/angular-mcp-server/src/lib/tools/ds/report-violations/group-violations.tool.ts
Outdated
Show resolved
Hide resolved
packages/angular-mcp-server/src/lib/tools/ds/report-violations/utils/index.ts
Show resolved
Hide resolved
…at and improving file conversion logic
…t path resolution and update related handlers
This pull request introduces significant enhancements to the Angular MCP toolkit, specifically around reporting and organizing deprecated CSS violations. The main improvements include a new tool for distributing violations into balanced work groups, improved documentation, and better default file handling for component contract tools. These changes streamline large-scale migration workflows and make the toolkit easier to use and integrate.
New Violation Grouping Tool & Workflow Improvements
New tool for work distribution:
group-violationstool, which takes a saved violations report and organizes files into balanced work groups using a bin-packing algorithm. It ensures path exclusivity and maintains directory boundaries for parallel development, saving results as individual JSON and Markdown files. [1] [2] [3] [4]Documentation updates:
README.mdanddocs/tools.mdto describe the newgroup-violationstool, clarify the purpose and output ofreport-violationsandreport-all-violations, and revise recommended workflows to include group creation for parallel migration. [1] [2] [3] [4]Component Contract Tool Improvements
Default save location handling:
saveLocationto be optional in both the build and diff component contract tools. If not provided, a sensible default path is generated based on the component name, reducing required configuration and avoiding errors. [1] [2] [3] [4] [5] [6]Schema updates:
saveLocationis now optional and documented the new default path behavior. [1] [2] [3] [4]These changes make it easier to run large-scale migrations by automating the grouping of work, improving documentation, and simplifying file management for contract tools.